<template>
	<!-- 个人中心 设置 -->
	<view class="Jy_setup_page">
		<view class="setUp_center-box">
			<view class="account-group">
				<view class="account-box">
					<view class="log_off_button-box" v-for="(item, index) in logOffList" :key="index" @click="getAccountLogOff()">
						<view class="log_off_name">
							<text>{{item.name}}</text>
						</view>
						<view class="log_off_image_box">
							<image src="http://120.78.177.187:8083/crmebimage/public/mpImage/main_menu/right.png" mode="aspectFit"></image>
						</view>
					</view>
				</view>
			</view>
			<view class="agree_on_group">
				<view class="agree_on_box" v-for="(item, index) in agreeOnList" :key="index" @click="getSysNavtaigateTo(item.pageUrl)">
					<view class="agress_on_continer">
						<view class="agress_on_name">
							<text>{{item.name}}</text>
						</view>
						<view class="agress_on_image_box">
							<image src="http://120.78.177.187:8083/crmebimage/public/mpImage/main_menu/right.png" mode="aspectFit"></image>
						</view>
					</view>
				</view>
			</view>
			<view class="account-group">
				<view class="account-box">
					<view class="log_off_button-box" v-for="(item, index) in aboutList" :key="index" @click="getSysNavtaigateTo(item.pageUrl)">
						<view class="log_off_name">
							<text>{{item.name}}</text>
						</view>
						<view class="log_off_image_box">
							<image src="http://120.78.177.187:8083/crmebimage/public/mpImage/main_menu/right.png" mode="aspectFit"></image>
						</view>
					</view>
				</view>
			</view>
			
			<view class="out_login-group">
				<view class="out_login_contianer" @click="getOutLogin()">
					<view class="out_login_box">
						<text>退出登录</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				logOffList: [
					{
						name: '账号注销'
					}
				],
				agreeOnList: [
					{
						name: '用户服务协议',
						pageUrl: '/pagesA/main/customerMyCenter/userServiceAgreement/userServiceAgreement'
					},
					{
						name: '隐私权政策',
						pageUrl: '/pagesA/main/customerMyCenter/privacyPolicy/privacyPolicy'
					},
					{
						name: '个人信息授权与保护声明',
						pageUrl: '/pagesA/main/customerMyCenter/personInfoAuth/personInfoAuth'
					}
				],
				aboutList: [
					{
						name: "关于英郎",
						pageUrl: '/pagesA/main/customerMyCenter/setUp/sysAboutInfo/sysAboutInfo'
					}
				] 
			}; 
		},
		methods: { 
			// 页面跳转
			getSysNavtaigateTo(url) {
				uni.navigateTo({
					url: url
				})
			},
			// 退出登录
			getOutLogin() {
				uni.showLoading({
					title: '正在退出登录'
				})
				setTimeout(() => {
					uni.switchTab({
						url: '/pages/main/customerHome/customerHome'
					})
					uni.hideLoading()
				}, 2000)
			},
			// 账号注销
			getAccountLogOff() {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
@import 'setUp.scss';
</style>
